package com.nbufe.domain.dto.factor;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author luzhiheng
 * @Date 2024/1/5 13:52
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddFactorDto {

    @NotNull(message = "原料不能为空")
    private Long materialId;

    @NotNull(message = "排放因子不能为空")
    private Double emissionFactor;

    @NotBlank(message = "数据来源不能为空")
    private String dataOrigin;
}
